package messy.test;
/**
 * 
 */

/**
 * 系统核心只能有一个,采用单例模式生成
 * @author admin
 *
 */
public class SystemCore {

	private SystemCore() {

	}

	private static class SystemCoreFactory {
		private static SystemCore systemCore = new SystemCore();
	}

	public static SystemCore getInstance() {
		return SystemCoreFactory.systemCore;
	}

	public Object readResolve() {
		return getInstance();
	}

}
